package singleton;

import junit.framework.TestCase;

public class JUnitABC extends TestCase {
	private ABC abc;

	@Override
	protected void setUp() throws Exception {
		abc = ABC.getInstance();
	}

	@Override
	protected void tearDown() throws Exception {
		abc = null;
	}

	public void testSingleton() {
		int expected = 8;
		int actual = abc.congXY(4, 5);
		assertEquals(expected, actual);
	}
	public void testSingleton2() {
		int expected = 9;
		int actual = abc.congXY(4, 5);
		assertEquals(expected, actual);
	}

}
